const GameMap = {
    template: "<div><img :style='styleMap1' src='./assets/map.jpg' /><img :style='styleMap2' src='./assets/map.jpg' /></div>",
    data(){
        return {
            top1: 0,
            top2: -1080
        }
    },
    computed: {
        styleMap1(){
            return {
                top: this.top1 + 'px'
            }
        },
        styleMap2(){
            return {
                top: this.top2 + 'px'
            }
        }
    },
    mounted(){
        setInterval(()=>{
            this.top1 += 5
            this.top2 += 5
            if(this.top1 >= 1080){
                this.top1 = -1080
            }
            if(this.top2 >= 1080){
                this.top2 = -1080
            }
        },10)
    }
}